*/
#include "defs.h"
+#if PDBFMTS_ENABLED
#include "coldsync/palm.h"
#include "coldsync/pdb.h"
#
cetus_args,
CET_CHARSET_MS_ANSI, 0 /* CET-REVIEW */
};
+#endif
* You may distribute this file under the terms of the Artistic
* License, as specified in the README file.
*
- * $Id: pdb.c,v 1.10 2006-04-09 02:11:34 robertl Exp $
+ * $Id: pdb.c,v 1.11 2006-05-07 02:14:35 robertl Exp $
*/
/* XXX - The way zero-length records are handled is a bit of a kludge. They
* shouldn't normally exist, with the exception of expunged records. But,
* with them.
* Debugging messages should go to 'FILE *pdb_logfile'.
*/
+#include "config.h"
+#if PDBFMTS_ENABLED
#include "cs-config.h"
#include <stdio.h>
* fill-column: 75 ***
* End: ***
*/
+#endif /* PDBFMTS_DISABLED */
* native format, convert them to Palm (big-endian) format, and write
* them to a ubyte string.
*
- * $Id: util.c,v 1.5 2006-04-09 02:11:34 robertl Exp $
+ * $Id: util.c,v 1.6 2006-05-07 02:14:35 robertl Exp $
*/
+#include "config.h"
#include "cs-config.h"
+#if PDBFMTS_ENABLED
#include <stdio.h>
#include <ctype.h> /* For isprint() */
#include <pconn/util.h>
* fill-column: 75 ***
* End: ***
*/
+#endif
/* config.h.in. Generated from configure.in by autoheader. */
-/* "0 for most-used character sets" */
+/* 0 for most-used character sets */
#undef CET_WANTED
/* Defined if you have libexpat */
/* Define to the version of this package. */
#undef PACKAGE_VERSION
+
+/* 1 to enable Palm PDB support */
+#undef PDBFMTS_ENABLED
+
+/* 1 to enable shapefile support */
+#undef SHAPELIB_ENABLED
fi
+
+cat >>confdefs.h <<\_ACEOF
+#define SHAPELIB_ENABLED 1
+_ACEOF
+
+
+cat >>confdefs.h <<\_ACEOF
+#define PDBFMTS_ENABLED 1
+_ACEOF
+
+
case "$target" in
*-*-cygwin* | *-*-mingw32*)
if test "$with_libusb" = no ; then
done
-# coldsync, shapelib, and jeeps are here just so the target directories are
-# created.
- ac_config_files="$ac_config_files Makefile shapelib/Makefile coldsync/Makefile jeeps/Makefile"
+ ac_config_files="$ac_config_files Makefile"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
case "$ac_config_target" in
# Handling of arguments.
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
- "shapelib/Makefile" ) CONFIG_FILES="$CONFIG_FILES shapelib/Makefile" ;;
- "coldsync/Makefile" ) CONFIG_FILES="$CONFIG_FILES coldsync/Makefile" ;;
- "jeeps/Makefile" ) CONFIG_FILES="$CONFIG_FILES jeeps/Makefile" ;;
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
cet="$withval", cet="default")
if test "$cet" = "all"; then
- AC_DEFINE(CET_WANTED, 1, "1 for all character sets")
+ AC_DEFINE(CET_WANTED, 1, [1 for all character sets])
fi
if test "$cet" = "default"; then
- AC_DEFINE(CET_WANTED, 0, "0 for most-used character sets")
+ AC_DEFINE(CET_WANTED, 0, [0 for most-used character sets])
fi
+
+AC_DEFINE(SHAPELIB_ENABLED, 1, [1 to enable shapefile support])
+AC_DEFINE(PDBFMTS_ENABLED, 1, [1 to enable Palm PDB support])
case "$target" in
*-*-cygwin* | *-*-mingw32*)
# AC_CHECK_FUNCS([atexit floor localtime_r memmove memset pow select sqrt strchr strcspn strdup strerror strncasecmp strrchr strspn strstr strtol strtoul])
AC_CHECK_FUNCS([nanosleep sleep])
-# coldsync, shapelib, and jeeps are here just so the target directories are
-# created.
-AC_CONFIG_FILES([Makefile shapelib/Makefile coldsync/Makefile jeeps/Makefile])
+AC_CONFIG_FILES([Makefile])
AC_OUTPUT
*/
#include "defs.h"
+#if PDBFMTS_ENABLED
#include "coldsync/palm.h"
#include "coldsync/pdb.h"
#include "grtcirc.h"
NULL,
CET_CHARSET_ASCII, 0 /* CET-REVIEW */
};
+#endif
*/
-#include <string.h>
#include "defs.h"
+#if PDBFMTS_ENABLED
#include "csv_util.h"
#include "coldsync/palm.h"
#include "coldsync/pdb.h"
coto_args,
CET_CHARSET_ASCII, 0 /* CET-REVIEW */
};
+#endif
*/
#include "defs.h"
+#if PDBFMTS_ENABLED
#include "coldsync/palm.h"
#include "coldsync/pdb.h"
NULL,
CET_CHARSET_ASCII, 0 /* CET-REVIEW */
};
+#endif
*/
#include "defs.h"
+#if PDBFMTS_ENABLED
#include "coldsync/palm.h"
#include "coldsync/pdb.h"
#include "jeeps/gpsmath.h"
Args,
CET_CHARSET_MS_ANSI, 0 /* CET-REVIEW */
};
+#endif
*/
#include "defs.h"
+#if PDBFMTS_ENABLED
#include "coldsync/palm.h"
#include "coldsync/pdb.h"
#include "garmin_tables.h"
my_args,
CET_CHARSET_ASCII, 0 /* CET-REVIEW */
};
+#endif
*/
#include "defs.h"
+#if PDBFMTS_ENABLED
#include "coldsync/palm.h"
#include "coldsync/pdb.h"
gpspilot_args,
CET_CHARSET_ASCII, 0 /* CET-REVIEW */
};
+#endif
#include <math.h>
#include "defs.h"
+#if PDBFMTS_ENABLED
#include "coldsync/palm.h"
#include "coldsync/pdb.h"
#include "jeeps/gpsmath.h"
magpdb_args,
CET_CHARSET_MS_ANSI, 1 /* CET-REVIEW */
};
+#endif
*/
#include "defs.h"
+#if PDBFMTS_ENABLED
#include "coldsync/palm.h"
#include "coldsync/pdb.h"
NULL,
CET_CHARSET_ASCII, 0 /* CET-REVIEW */
};
+#endif
*/
#include "defs.h"
+#if PDBFMTS_ENABLED
#include "coldsync/palm.h"
#include "coldsync/pdb.h"
NULL,
CET_CHARSET_ASCII, 0 /* CET-REVIEW */
};
+#endif
#include "defs.h"
+#if PDBFMTS_ENABLED
#include "jeeps/gpsmath.h"
#include <ctype.h>
#include "coldsync/palm.h"
};
+#endif
#include <ctype.h>
#include "defs.h"
+#if PDBFMTS_ENABLED
#include "coldsync/palm.h"
#include "coldsync/pdb.h"
#include "csv_util.h"
ppdb_args,
CET_CHARSET_ASCII, 0 /* CET-REVIEW */
};
+#endif
#include "quovadis.h"
+#if PDBFMTS_ENABLED
static FILE *file_in;
static FILE *file_out;
static const char *out_fname;
quovadis_args,
CET_CHARSET_ASCII, 0 /* CET-REVIEW */
};
+#endif
#include "defs.h"
#include "shapelib/shapefil.h"
+#if SHAPELIB_ENABLED
static SHPHandle ihandle;
static DBFHandle ihandledb;
static SHPHandle ohandle;
shp_args,
CET_CHARSET_ASCII, 0 /* CET-REVIEW */
};
+#endif /* SHAPELIB_ENABLED */
/******************************************************************************
- * $Id: dbfopen.c,v 1.1 2004-09-20 17:21:22 robertl Exp $
+ * $Id: dbfopen.c,v 1.2 2006-05-07 02:14:35 robertl Exp $
*
* Project: Shapelib
* Purpose: Implementation of .dbf access API documented in dbf_api.html.
******************************************************************************
*
* $Log: not supported by cvs2svn $
+ * Revision 1.1 2004/09/20 17:21:22 robertl
+ * Check in shapelib and experimental prototype of crude shapefile support.
+ *
* Revision 1.48 2003/03/10 14:51:27 warmerda
* DBFWrite* calls now return FALSE if they have to truncate
*
*/
static char rcsid[] =
- "$Id: dbfopen.c,v 1.1 2004-09-20 17:21:22 robertl Exp $";
+ "$Id: dbfopen.c,v 1.2 2006-05-07 02:14:35 robertl Exp $";
#include "shapefil.h"
+#include "config.h"
+
+#if SHAPELIB_ENABLED
#include <math.h>
#include <stdlib.h>
}
return(-1);
}
+#endif
/******************************************************************************
- * $Id: shpopen.c,v 1.2 2004-09-27 01:13:58 robertl Exp $
+ * $Id: shpopen.c,v 1.3 2006-05-07 02:14:35 robertl Exp $
*
* Project: Shapelib
* Purpose: Implementation of core Shapefile read/write functions.
******************************************************************************
*
* $Log: not supported by cvs2svn $
+ * Revision 1.2 2004/09/27 01:13:58 robertl
+ * warning fixes in shapelib. From Alexander Stohr.
+ *
* Revision 1.1 2004/09/20 17:21:22 robertl
* Check in shapelib and experimental prototype of crude shapefile support.
*
*/
static char rcsid[] =
- "$Id: shpopen.c,v 1.2 2004-09-27 01:13:58 robertl Exp $";
+ "$Id: shpopen.c,v 1.3 2006-05-07 02:14:35 robertl Exp $";
#include "shapefil.h"
+#include "config.h"
+#if SHAPELIB_ENABLED
#include <math.h>
#include <limits.h>
return bAltered;
}
+#endif
"Lowrance USR",
"usr"
},
+#if PDBFMTS_ENABLED
{
&cetus_vecs,
"cetus",
"Magellan NAV Companion for Palm/OS",
"pdb"
},
+#endif /* PDBFMTS_ENABLED */
{
&garmin_vecs,
"garmin",
"TopoMapPro Places File",
"tmpro"
},
+#if PDBFMTS_ENABLED
{
&gcdb_vecs,
"gcdb",
"GeocachingDB for Palm/OS",
"pdb"
},
+#endif
{
&tiger_vecs,
"tiger",
"EasyGPS binary format",
".loc"
},
+#if PDBFMTS_ENABLED
{
&quovadis_vecs,
"quovadis",
"GpilotS",
"pdb"
},
+#endif
{
&saroute_vecs,
"saroute",
"KuDaTa PsiTrex text",
NULL
},
+#if SHAPELIB_ENABLED
{
&shape_vecs,
"shape",
"GeoNiche .pdb",
"pdb"
},
+#endif
{
&gpl_vecs,
"gpl",
"HTML Output",
"html"
},
+#if PDBFMTS_ENABLED
{
&palmdoc_vecs,
"palmdoc",
"PalmDoc Output",
"pdb"
},
+#endif
{
&netstumbler_vecs,
"netstumbler",
"Map&Guide 'TourExchangeFormat' XML",
"xml"
},
+#if PDBFMTS_ENABLED
{
&ppdb_vecs,
"pathaway",
"PathAway Database for Palm/OS",
"pdb"
},
+#endif
{
&vitosmt_vecs,
"vitosmt",
"Motorrad Routenplaner (Map&Guide) .bcr files",
"bcr"
},
+#if PDBFMTS_ENABLED
{
&coto_vecs,
"coto",
"cotoGPS for Palm/OS",
"pdb"
},
+#endif
{
&ignr_vecs,
"ignrando",
"Navigon Mobile Navigator .rte files",
"rte"
},
+#if PDBFMTS_ENABLED
{
&magpdb_vecs,
"mag_pdb",
"Map&Guide to Palm/OS exported files (.pdb)",
"pdb"
},
+#endif
{
&compegps_vecs,
"compegps",